<?php

namespace Sffi\ElementPlus;

use Sffi\ElementPlus\base\EntityToArray;
use Sffi\ElementPlus\ElList\Column;
use Sffi\ElementPlus\ElSearch\Item;

class ElList
{
    use EntityToArray;
    /**
     * @var Column
     */
    protected array $columns;

    protected array $searchs;

    public function addColumn(Column $column): ElList
    {
        $this->columns[] = $column;
        return $this;
    }

    public function addSearch(Item $search)
    {
        $this->searchs[] = $search;
        return $this;
    }
}